package models;

import play.db.jpa.GenericModel;
import play.db.jpa.Model;
import play.data.validation.Required;
import play.data.validation.MaxSize;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


/**
 * Model Docente generated by Play!
 */

@Entity
@Table(name="DOCENTE")
public class Docente extends GenericModel {

	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_DOCENTE")
	@SequenceGenerator(name="SEQ_DOCENTE", sequenceName="SEQ_DOCENTE", allocationSize=1)
	private long idempleador;
    @Required
    @ManyToOne
    public Empleado empleado;
    @Required
    @ManyToOne
    public Departamento departamento;
   
    @Required
    public String nivel;
    @Required
    public String tiempolaboral;
    //@OneToMany(mappedBy="DOCENTE")  
    //public Set<DocenteAdministra> docenteAdministras = new HashSet<DocenteAdministra>(0);
    //@OneToMany(mappedBy="DOCENTE")  
    //public Set<DocenteAsignatura> docenteAsignaturas = new HashSet<DocenteAsignatura>(0);
    //@OneToMany(mappedBy="DOCENTE")  
    //public Set<DocenteComision> docenteComisions = new HashSet<DocenteComision>(0);
    //@OneToMany(mappedBy="DOCENTE")  
    //public Set<DocenteComite> docenteComites = new HashSet<DocenteComite>(0);
    //@OneToMany(mappedBy="DOCENTE")  
    //public Set<DocenteTesis> docenteTesises = new HashSet<DocenteTesis>(0);
    //@OneToMany(mappedBy="DOCENTE")  
    //public Set<Grupo> grupos = new HashSet<Grupo>(0);
    //@OneToMany(mappedBy="DOCENTE")  
    //public Set<DocenteDirige> docenteDiriges = new HashSet<DocenteDirige>(0);

    //default constructor 
    public Docente() {
    }
    public Docente(long idempleador) {
     	this.idempleador = idempleador;
    }
   


}


